package com.tianji.learning.controller;


import com.tianji.learning.domain.dto.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardVO;
import com.tianji.learning.service.IPointsBoardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学霸天梯榜 前端控制器
 * </p>
 *
 * @author WFan
 * @since 2025-04-02
 */
@Api(tags = "积分榜单相关接口")
@RestController
@RequestMapping("/boards")
@RequiredArgsConstructor
public class PointsBoardController {
    private final IPointsBoardService pointsBoardService;

    /**
     * 查询积分榜单
     * @param pageQuery
     * @return
     */
    @ApiOperation("查询指定赛季积分榜单")
    @GetMapping
    public PointsBoardVO queryBoard(PointsBoardQuery pageQuery){
        return pointsBoardService.queryBoard(pageQuery);
    }

}
